import openpyxl

# workbook = openpyxl.load_workbook('example.xlsx')
# sheet = workbook['Sheet']

# value = sheet['A1'].value
# print(value)
#
# value = sheet['B2'].value
# print(value)

# sheet['A7'].value = '飞驰人生1'
# workbook.save('example.xlsx')

workbook = openpyxl.Workbook()

sheet = workbook.active

# sheet['A1'] = 'Hello'
# sheet['B1'] = 'World'
# sheet.append([1, 2, 3, 4, 5,7])
for i in range(1, 101):
    sheet.append([i, i**2, i**3, i**4])

workbook.save('new_example.xlsx')
